﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Microsoft.TeamFoundation.VersionControl.Client;

namespace Tcvt.Packages
{
    public partial class CheckinViolationsForm : Form
    {
        #region Constructor

        public CheckinViolationsForm()
        {
            InitializeComponent();
        }

        #endregion

        #region Event Handlers

        private void IgnoreViolationsButton_Click(object sender, EventArgs e)
        {
            this.IgnoreViolations = true;
            this.Close();
        }

        private void CancelViolationsButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void CheckinViolationsForm_Load(object sender, EventArgs e)
        {
            this.IgnoreViolations = false;
            this.NotesFailuresValuesLabel.Text = this.CheckinNotesFailures;
            this.PolicyViolationsValuesLabel.Text = this.PolicyFailures;
            this.ConflictsValuesLabel.Text = this.Conflicts;
            this.PolicyExceptionsValuesLabel.Text = this.PolicyExceptions;
        }

        #endregion

        #region Properties

        public string CheckinNotesFailures { get; set; }

        public string PolicyFailures { get; set; }

        public string Conflicts { get; set; }

        public string PolicyExceptions { get; set; }

        public bool IgnoreViolations { get; private set; }

        #endregion
    }
}
